package sequence.recorder;

import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;

class TrackList implements Iterable<Track> {

	private List<Track> tracks = new LinkedList<Track>();

	public void newTrack(int key, String name) {
		tracks.add(new Track(key, name));
	}

	public int size() {
		return tracks.size();
	}

	public Iterator<Track> iterator() {
		return tracks.iterator();
	}
}
